package iotwisp.school.user.command.admin;

import java.util.List;

import iotwisp.base.cqrs.SPIBaseCommand;
import iotwisp.school.user.qo.AdminQO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * {@link AdminQO} {@link diance.view.organization.vo.AdminVO}
 * {@link diance.view.organization.provider.qo.AdminViewQO}
 * {@link diance.view.organization.provider.spi.mp.AdminViewSPI} User UserQO UserVO
 * UserSPI UserViewSPI UserSaleStatisticsService UserViewService UserController
 * UserViewController
 * 
 * @author yuxx
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
public class ModifyAdminSCmd extends SPIBaseCommand {

	/**
	 * 用户id
	 */
	private String adminId;
	/**
	 * 用户名字
	 */
	@NotBlank(message = "请输入管理员姓名")
	private String name;
	/**
	 * 用户电话
	 */
	private String phone;
	/**
	 * 用户登录名
	 */
	@NotBlank(message = "请输入管理员登录名")
	private String loginName;
	/**
	 * 用户登录密码
	 */
	private String password;
	/**
	 * 帐号是否启用
	 */
	private Boolean enable;
	/**
	 * 工作证头像图片id
	 */
	private String headImageId;
	/**
	 * 要新增的角色id集
	 */
	private List<String> addRoleIds;
	/**
	 * 要移除的角色id集
	 */
	private List<String> removeRoleIds;
}
